package SingleLinkedList;

public class Test {
    public static void main(String[] args) {
        MySingleLinkedList msl=new MySingleLinkedList();
        msl.addFirst(1);
        msl.addFirst(2);
        msl.addFirst(3);
        msl.addFirst(4);
        msl.display();
        System.out.println(msl.size());
        System.out.println("=======");
        msl.addLast(100);
        msl.addLast(200);
        msl.addLast(300);
        msl.display();
        System.out.println("=========");
        msl.addIndex(0,1000);
        msl.addIndex(4,1000);
        msl.display();
        System.out.println(msl.size());
        msl.addIndex(9,1000);
        msl.display();
        System.out.println("===========");
        System.out.println(msl.contains(1000));
        System.out.println("===========");
//        msl.remove(1000);
//        msl.display();
//        System.out.println("========");
        msl.removeAllKey(1000);
        msl.display();
    }
}
